//
//  TTCommonNetData.h
//  TaoTuo
//
//  Created by admin on 2019/8/30.
//  Copyright © 2019 admin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TTShopCartCodeModel.h"
#import "TTUserModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface TTCommonNetData : NSObject

/// 购物车条码
+ (void)getShopCartCodeInfoSuccess:(void(^)(NSArray *cartCodeArray, int shopCount))success failure:(dispatch_block_t)failure;

/// 处理购物车商品条码数据
+ (void)handleShopCartCodeInfoWithArray:(NSArray *)responseObject;

/// 获取用户身份信息
+ (void)getVipLevelSuccess:(void(^)(TTUserModel *userModel))success failure:(dispatch_block_t)failure;

/// 获取订单列表
+ (void)getOrderListWithOrderState:(int)orderState page:(int)page success:(void(^)(NSURLSessionDataTask * _Nonnull task, NSMutableArray *array))success failure:(void(^)(NSURLSessionDataTask * _Nonnull task, NSError * _Nullable error))failure showLoadingInView:(UIView *)loadingView;

/// 获取个人店铺订单列表
+ (void)getDianpuOrderListWithOrderState:(NSInteger)orderState page:(int)page success:(void(^)(NSURLSessionDataTask * _Nonnull task, NSMutableArray *array))success failure:(void(^)(NSURLSessionDataTask * _Nonnull task, NSError * _Nullable error))failure showLoadingInView:(UIView *)loadingView;

@end

NS_ASSUME_NONNULL_END
